const fs = require("fs");

module.exports = {
    writeFile : writeFile
}

function writeFile(file, data){

    fs.writeFile(file, data, (err) => {
        if(err){
            console.log(`---------------Write file ${file} error----------------`);
        }else{
            console.log(`---------------Write file ${file} success----------------`);
        }
    });
}